<html>
<head>
<title>Tutorial3</title>
<link type="text/css" rel="stylesheet" href="static/d_20071112.css" />
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="static/d_ie.css" />
<![endif]-->
</head>
<body class="t6">
<div id="wikicontent">
<h1> NAME </h1><p>Foorum::Manual::Tutorial3 - Tutorial 3: For Foorum Developers</p><h2> Perl::Critic </h2><p><a href="http://search.cpan.org/perldoc?Perl::Critic" rel="nofollow">Perl::Critic</a></p><p>Every Perl developer should use Perl::Critic to check his code. It would avoid stupid errors.</p><ul><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/perlcritic.pl" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/perlcritic.pl</a> </li><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/critic.txt" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/critic.txt</a> </li></ul><h2> Perl::Tidy </h2><p><a href="http://search.cpan.org/perldoc?Perl::Tidy" rel="nofollow">Perl::Tidy</a></p><p>Every Programmer has own style to write code (expect Python. ;-). well, for many developers in one project, I think it's better to keep in one voice. that's Perl::Tidy for.</p><ul><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/perltidy.pl" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/perltidy.pl</a> </li></ul><p>If u want a different style, please dicuss before edit</p><ul><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/.perltidyrc" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/.perltidyrc</a> </li></ul><h2> JavaScript::Minifier and CSS::Minifier </h2><p><a href="http://search.cpan.org/perldoc?JavaScript::Minifier" rel="nofollow">JavaScript::Minifier</a>, <a href="http://search.cpan.org/perldoc?CSS::Minifier" rel="nofollow">CSS::Minifier</a></p><p>With minified css/js, browser loads page more fast. well, I plan to use <a href="http://search.cpan.org/~ruz/CSS-Squish-0.07/lib/CSS/Squish.pm" rel="nofollow">http://search.cpan.org/~ruz/CSS-Squish-0.07/lib/CSS/Squish.pm</a> to merge all CSS into one file (but it's only a plan for now).</p><ul><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/js-min.pl" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/js-min.pl</a> </li><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/css-min.pl" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/css-min.pl</a> </li></ul><h2> debug flag in foorum_local.yml </h2><p>vim foorum_local.yml, and add a line:</p><pre class="prettyprint">debug_mode: 1
</pre><h2> Build Docs From GoogleCode wiki </h2><p>Please don't edit $svn/trunk/docs/ HTML files, instead edit $svn/wiki or <a href="http://code.google.com/p/foorum/w/list" rel="nofollow">Wiki</a> through Web. after edit, u can use follow script to update docs/ HTML files.</p><ul><li><a href="http://foorum.googlecode.com/svn/trunk/bin/misc/bdfgw.pl" rel="nofollow">http://foorum.googlecode.com/svn/trunk/bin/misc/bdfgw.pl</a> </li></ul><h1> SEE ALSO </h1><p><a href="Tutorial1.html">Tutorial1</a>, <a href="Tutorial2.html">Tutorial2</a>, <a href="Tutorial4.html">Tutorial4</a>, <a href="Tutorial5.html">Tutorial5</a></p>
</div>
<h1>WHERE TO GO NEXT</h1>
<ul>
<li>Get the lastest version from <a href="http://code.google.com/p/foorum/wiki/Tutorial3">http://code.google.com/p/foorum/wiki/Tutorial3</a></li>
<li><a href="index.html">Index Page</a></li>
</ul>
<script src="static/prettify.js"></script>
<script>
prettyPrint();
</script>
</body>
</html>